﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.graphics {
    import flash.display.*;
    import flash.geom.*;

    public class GradientBrush implements IBrush {

        public static const LINEAR:String = "linear";
        public static const RADIAL:String = "radial";

        private var fillType:String;
        private var colors:Array;
        private var alphas:Array;
        private var ratios:Array;
        private var matrix:Matrix;
        private var spreadMethod:String;
        private var interpolationMethod:String;
        private var focalPointRatio:Number;

        public function GradientBrush(_arg1:String, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Matrix, _arg6:String="pad", _arg7:String="rgb", _arg8:Number=0){
            this.fillType = _arg1;
            this.colors = _arg2;
            this.alphas = _arg3;
            this.ratios = _arg4;
            this.matrix = _arg5;
            this.spreadMethod = _arg6;
            this.interpolationMethod = _arg7;
            this.focalPointRatio = _arg8;
        }
        public function getFillType():String{
            return (this.fillType);
        }
        public function setFillType(_arg1:String):void{
            this.fillType = _arg1;
        }
        public function getColors():Array{
            return (this.colors);
        }
        public function setColors(_arg1:Array):void{
            this.colors = _arg1;
        }
        public function getAlphas():Array{
            return (this.alphas);
        }
        public function setAlphas(_arg1:Array):void{
            this.alphas = _arg1;
        }
        public function getRatios():Array{
            return (this.ratios);
        }
        public function setRatios(_arg1:Array):void{
        }
        public function getMatrix():Object{
            return (this.matrix);
        }
        public function setMatrix(_arg1:Matrix):void{
            this.matrix = _arg1;
        }
        public function beginFill(_arg1:Graphics):void{
            _arg1.beginGradientFill(this.fillType, this.colors, this.alphas, this.ratios, this.matrix, this.spreadMethod, this.interpolationMethod, this.focalPointRatio);
        }
        public function endFill(_arg1:Graphics):void{
            _arg1.endFill();
        }

    }
}//package org.aswing.graphics 
